package cn.com.blueInfo.core.param;

import cn.com.blueInfo.config.YamlFileLoader;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Component
@PropertySource(value = "classpath:config/bpm-manager.yml", factory = YamlFileLoader.class)
@ConfigurationProperties(prefix = "bpm.navigation")
public class SystemNavigation {

    private LevelMenu[] component;

    private LevelMenu[] processManager;

    @Data
    public static class LevelMenu {
        /** 唯一标识 */
        private String id;
        /** 路由 */
        private String path;
        /** 名称 */
        private String name;
        /** 显示标题 */
        private String title;
        /** 图标 */
        private String icon;
        /** vue组件 */
        private String componentPath;
        /** 权限 */
        private String permission;
        /** 子路由 */
        private LevelMenu[] children;

    }

}
